package com.sibu.yx.promotion.common.util;

import java.text.NumberFormat;

public class MathUtils {

    /**
     * 转化两个数的商为百分数，并转化成字符串
     */

    public static String percentage(Double percent) {

        NumberFormat format = NumberFormat.getPercentInstance();

        format.setMinimumFractionDigits(2);

        return  format.format(percent);
    }

}



